package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.List;

@TableName("erp_role")
public class ErpRole  extends Model<ErpRegister> {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("customer_id")
    private Integer customerId;
    @TableField("role_name")
    private String roleName;
    @TableField("role_action")
    private String roleAction;
    @TableField("role_allact")
    private Integer roleAllact;
    @TableField("role_range")
    private String roleRange;
    @TableField("ip")
    private String ip;
    @TableField("name")
    private String name;
    @TableField("u_daye")
    private String uDaye;

    public String getRoleRange() {
        return roleRange;
    }

    public void setRoleRange(String roleRange) {
        this.roleRange = roleRange;
    }

    public List<ErpPowers> getErpPowersList() {
        return erpPowersList;
    }

    public void setErpPowersList(List<ErpPowers> erpPowersList) {
        this.erpPowersList = erpPowersList;
    }

    private transient List<ErpPowers>  erpPowersList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleAction() {
        return roleAction;
    }

    public void setRoleAction(String roleAction) {
        this.roleAction = roleAction;
    }

    public Integer getRoleAllact() {
        return roleAllact;
    }

    public void setRoleAllact(Integer roleAllact) {
        this.roleAllact = roleAllact;
    }

    public String getRoleNange() {
        return roleRange;
    }

    public void setRoleNange(String roleNange) {
        this.roleRange = roleNange;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getuDaye() {
        return uDaye;
    }

    public void setuDaye(String uDaye) {
        this.uDaye = uDaye;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
